-- GENERATED SPELL FOR [Admiral Barean Westwind] --


function spell0_27951(pUnit, Event) --@Protection Sphere,Self--
pUnit:FullCastSpellOnTarget(50161,pUnit)
pUnit:RegisterEvent('Sorts_27951', 657, 1)
end

function Sorts_27951(pUnit, Event)
local choix_sorts_27951 = math.random(0, 0)
if choix_sorts_27951 == 0 then
pUnit:RegisterEvent('spell0_27951', 1, 1)
end
end

function mob27951_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27951', math.random(1500, 3000), 1)
end

function mob27951_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27951_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27951_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27951, 1, 'mob27951_Action')
RegisterUnitEvent(27951, 2, 'mob27951_Leave')
RegisterUnitEvent(27951, 3, 'mob27951_Kill')
RegisterUnitEvent(27951, 4, 'mob27951_Die')
